package org.tsp.android.SensorExample;

import org.tsp.android.MapExample.R;

import android.app.Activity;
import android.location.LocationManager;
import android.os.Bundle;

public class SensorsExampleActivity extends Activity {
	

	private LocationManager m_locMngr;
	private MyLocationListener m_locLstrn;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map_view);
        
    }
    
    @Override
    public void onStart()
    {	
    	super.onStart();
    }
    
    @Override
    public void onResume()
    {
    	super.onResume();
    	m_locMngr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 1, m_locLstrn);
    }
    
    @Override
    public void onPause()
    {
    	super.onPause();
    	m_locMngr.removeUpdates(m_locLstrn);
    }
    
    @Override
    public void onStop()
    {
    	super.onStop();
    }  
}